package cn.ac.iscas.domain.response.middleplatform;

/**
 * 数据库中字段的类型
 *
 * @author zhuquanwen
 * @version 1.0
 * @date 2022/3/2 17:15
 * @since jdk11
 */
public enum DbColumnType {

    STRING(1, "字符串"),
    DATE(2, "时间"),
    DOUBLE(3, "双精度浮点"),
    INTEGER(4, "整形"),
    LONG(5, "长整型"),
    BOOLEAN(6, "布尔"),
    OBJECT(7, "对象"),
    POINT(8, "二位点"),
    POINT3D(9, "三维点"),
    SHAPE(10, "二维图形"),
    SHAPE3D(11, "三维图形"),
    BLOB(12, "BLOB"),
    SHORT(13, "短整形"),
    FLOAT(14, "单精度浮点"),
    TINYINT(16, "整形(1字节)"),
    UNKOWN(17, "未知");

    private int value;
    private String name;

    DbColumnType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
